package com.zrgj.manager.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.zrgj.domain.ProductInfo;
import com.zrgj.manager.mapper.ProductInfoMapper;
import com.zrgj.manager.service.IProductInfoService;
import org.springframework.stereotype.Component;

import java.util.List;

@Service
@Component
public class ProductInfoServiceImpl implements IProductInfoService {
    private ProductInfoMapper productInfoMapper;

    public ProductInfoServiceImpl(ProductInfoMapper productInfoMapper) {
        this.productInfoMapper = productInfoMapper;
    }

    @Override
    public int insertProductInfo(ProductInfo info) {
        return productInfoMapper.insertProductInfo(info);
    }

    @Override
    public List<ProductInfo> select(ProductInfo productInfo) {
        return productInfoMapper.select(productInfo);
    }
}
